<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>创新与管理国际学术会议-论文管理系统</title>

<!-- CSS -->
<link href="<%=request.getContextPath()%>/style/transdmin.css" rel="stylesheet" type="text/css" media="screen" />
<!--[if IE 6]><link rel="stylesheet" type="text/css" media="screen" href="<%=request.getContextPath()%>/style/ie6.css" /><![endif]-->
<!--[if IE 7]><link rel="stylesheet" type="text/css" media="screen" href="<%=request.getContextPath()%>/style/ie7.css" /><![endif]-->

<!-- JavaScripts-->
<script type="text/javascript" src="<%=request.getContextPath()%>/js/jquery.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/jNice.js"></script>

</head>

<body>
	<div id="wrapper">
    	<!-- 导航 -->
		<s:include value="../header.jsp">
			<s:param name="channel" value="3"/>
		</s:include>
        
        <div id="containerHolder">
			<div id="container">
				<!-- 左边菜单 -->
        		<s:include value="menu.jsp">
        			<s:param name="item" value="2"/>
        		</s:include>
                
                <!-- h2 stays for breadcrumbs -->
                <h2>我的消息 &raquo; <span class="active">收件箱</span></h2>
                
                <div id="main">
                	<h3>收件箱</h3>
                    <table cellpadding="0" cellspacing="0">
                      <tr class="head">
                        <td>标题</td>
                        <td>内容</td>
                        <td>发件人</td>
                        <td>收件人</td>
                        <td>发送时间</td>
                        <td>操作</td>
                      </tr>
                      <tr class="odd">
                        <td>测试消息</td>
                        <td>测试消息</td>
                        <td>龙吟风</td>
                        <td>凌天蓝</td>
                        <td>2010-7-8 16:15</td>
                        <td class="action"><a href="#" class="delete">删除</a></td>
                      </tr>
                      <tr>
                        <td>测试消息</td>
                        <td>测试消息</td>
                        <td>龙吟风</td>
                        <td>凌天蓝</td>
                        <td>2010-7-8 16:15</td>
                        <td class="action"><a href="#" class="delete">删除</a></td>
                      </tr>
                      <tr class="odd">
                        <td>测试消息</td>
                        <td>测试消息</td>
                        <td>龙吟风</td>
                        <td>凌天蓝</td>
                        <td>2010-7-8 16:15</td>
                        <td class="action"><a href="#" class="delete">删除</a></td>
                      </tr>
                      <tr>
                        <td>测试消息</td>
                        <td>测试消息</td>
                        <td>龙吟风</td>
                        <td>凌天蓝</td>
                        <td>2010-7-8 16:15</td>
                        <td class="action"><a href="#" class="delete">删除</a></td>
                      </tr>
                      <tr class="odd">
                        <td>测试消息</td>
                        <td>测试消息</td>
                        <td>龙吟风</td>
                        <td>凌天蓝</td>
                        <td>2010-7-8 16:15</td>
                        <td class="action"><a href="#" class="delete">删除</a></td>
                      </tr>
                    </table>
                </div>
                <!-- // #main -->
                
                <div class="clear"></div>
            </div>
            <!-- // #container -->
        </div>	
        <!-- // #containerHolder -->
        
        <p id="footer">powered by 武汉理工大学管理学院</p>
    </div>
    <!-- // #wrapper -->
    
    <script type="text/javascript">
    	var submited = false;   //用户提交操作标志
    	var uploaded = false;   //上传成功标志
    	function delFile(){
			if(uploaded){
				$('#fileInfo').html('');
				$('#fileInfo').hide();
				
				$('#tmpFileName').val('');
				$('#choosePannel').show();
				
				uploaded = false;
			}
    	}
    	
		$(document).ready(function()
	        {
	        	//上传组件
	            $("#uploadify").uploadify({
	                'uploader': '<%=request.getContextPath()%>/swf/uploadify.swf',
	                'script': 'uploadFile.action',
	                'wmode' : 'transparent',
	                'cancelImg': '<%=request.getContextPath()%>/images/cancel.png',
	                'sizeLimit': 3 * 1024 * 1024,
	                'fileExt': '*.doc',
	                'fileDesc': 'word文件(*doc)',
	                'queueID': 'fileQueue',
	                'fileDataName': 'file',    // 对应文件域的name
	                'buttonText': 'Choose Paper',
	                'auto': true,
	                'multi': false,
	                'onComplete': function(event, queueID, fileObj, response, data){
						var result = $.evalJSON(response);
						
						$('#tmpFileName').val(result.tmpFileName);
						$('#choosePannel').hide('fast');
						$('#fileInfo').html('文件: ' + fileObj.name + ' 上传成功！<a href="javascript:delFile();">删除</a>');
						$('#fileInfo').show('slow');
						uploaded = true;

						//如果用户已点了提交 ，则自动提交
						if(submited){
							$('#submitForm').submit();
						}
	                }
	            });

	            //表单验证
	            $('#submitForm').validate({
	                rules: {
	                    chineseTitle: {
	                        maxlength: 50,
	                        required: true
	                    }
	                },
	                messages: {
	                	chineseTitle: {
	                        maxlength: '中文标题长度不能超过50字',
	                        required: '中文标题不能为空'
	                    }
	                }
	            });
	        });
	</script>

</body>

</html>